home *** CD-ROM | disk | FTP | other *** search
/ Aminet 31 / Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso / Aminet / util / gnu / xpdf-0.8-src.lha / xpdf-0.8-src / ltk / LTKCompoundWidget.h < prev    next >
C/C++ Source or Header  |  1998-11-28  |  1KB  |  57 lines

  1. //========================================================================
  2. //
  3. // LTKCompoundWidget.h
  4. //
  5. // Compound widget base class.
  6. //
  7. // Copyright 1997 Derek B. Noonburg
  8. //
  9. //========================================================================
  10.  
  11. #ifndef LTKCOMPOUNDWIDGET_H
  12. #define LTKCOMPOUNDWIDGET_H
  13.  
  14. #ifdef __GNUC__
  15. #pragma interface
  16. #endif
  17.  
  18. #include <stddef.h>
  19. #include <X11/Xlib.h>
  20. #include "gtypes.h"
  21. #include "LTKWidget.h"
  22.  
  23. //------------------------------------------------------------------------
  24. // LTKCompoundWidget
  25. //------------------------------------------------------------------------
  26.  
  27. class LTKCompoundWidget: public LTKWidget {
  28. public:
  29.  
  30.   //---------- constructor and destructor ----------
  31.  
  32.   LTKCompoundWidget(char *name1, int widgetNum1);
  33.   virtual ~LTKCompoundWidget();
  34.  
  35.   //---------- access ----------
  36.  
  37.   virtual void setParent(LTKWindow *parent1);
  38.  
  39.   //---------- layout ----------
  40.  
  41.   virtual void layout1();
  42.   virtual void layout2(int x1, int y1, int width1, int height1);
  43.   virtual void layout3();
  44.   virtual void map();
  45.  
  46.   //---------- drawing ----------
  47.  
  48.   virtual void redraw();
  49.   virtual void redrawBackground();
  50.  
  51. protected:
  52.  
  53.   LTKBox *box;
  54. };
  55.  
  56. #endif
  57.